/*! \file Bounds2.inl
 *	\brief 
 *
 *	created:	2010/03/11
 *	created:	11:3:2010   22:30
 *	filename: 	c:\src\tactics-engine\libs\math\Bounds2.inl
 *	file path:	c:\src\tactics-engine\libs\math
 *	file base:	Bounds2
 *	file ext:	inl
 *	author:		Vitalii Trubchaninov
 *				venngraydog@gmail.com
 */

namespace tt{
namespace math{

template<typename T>
Bounds2<T>::Bounds2()
: min()
, max()
{

}

template<typename T>
Bounds2<T>::Bounds2( Value min_x, Value min_y, Value max_x, Value max_y )
: min(min_x, min_y)
, max(max_x, max_y)
{

}

template<typename T>
Bounds2<T>::Bounds2( const Point& _min, const Point& _max )
: min(_min)
, max(_max)
{

}

template<typename T>
typename Bounds2<T>::Point Bounds2<T>::size() const
{
	return max - min;
}

} //namespace math
} //namespace tt